package com.zang.netty.io.model.enums;

/**
 * @author Zhang Qiang
 * @Date 2019/7/18 18:24
 */
public enum SocketEnum {

     /**
      * 端口号
      */
    PORT(8099, "port"),
    NIO_PORT(8100, "port"),
    LOCALHOST(127, "127.0.0.1");

    private int num;
    private String str;

    public int getNum(){
        return num;
    }
    public String getStr(){
        return str;
    }

    SocketEnum(int num, String str){
        this.num = num;
        this.str = str;
    }


}
